package priv.stones.regex;

import java.util.Arrays;

/**
 * @Author: Stones
 * @Description:
 * @Date: 2017/9/25 16:09
 */
public class Regex1 {

    public static void main(String[] args) {
        String str = "aasdklajgo2342l3k4j235l";
        System.out.println(Arrays.toString(str.split("\\d+")));
        System.out.println(str);
        str = str.replaceFirst("[0-9]", "");
        System.out.println(str);
        str = "123";
        System.out.println(str.matches("\\d+"));
    }

}
